package com.zhiyou100.blog.dao;

import com.zhiyou100.blog.entity.Endorse;

import java.util.List;

/**
 * @author shkstart
 * @create 2021-10-25 9:59
 */
public interface EndorseDao {
    public List<Endorse> getListEndorseZanXuUid(int uid, boolean isAgree);

    //根据指定用户名查询 是否给给文章点赞
    long getEndorseUserZanXuCount(int mid, int uid, boolean isAgree);

    //查询该留言的点赞和虚的信息
    List<Endorse> getListEndorseZanXu(int mid, boolean isAgree);


    //修改赞虚
    int updateEndorseZanXu(int mid, int uid, boolean isAgree);

    //查询
    int addEndorseZanXu(int mid, int uid, boolean isAgree);
}
